﻿
@model RTW.OA.Models.vehicle_car
@{

    Layout = "~/Views/Shared/_LayoutBase.cshtml";
}

@section styles{

}
<div id="dMain">
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="ibox" style="margin-bottom: 0px;">
            <div class="ibox-title">
                <h4>@ViewBag.Title </h4>
            </div>
            <div class="ibox-content">
                @using (Html.BeginForm("CarEdit", "Vehicle", FormMethod.Post, new { area = "Common", id = "carfrom", name = "carfrom" }))
                {
                    @Html.AntiForgeryToken()

                    <div class="from-content">
                        @Html.HiddenFor(m => m.V_ID)
                        <dl>
                            <dt>厂牌型号</dt>
                            <dd>
                                @Html.EditorFor(m => m.V_MODEL, new { htmlAttributes = new { @class = "input normal form-control" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>车牌号</dt>
                            <dd>
                                @Html.EditorFor(m => m.V_NUM, new { htmlAttributes = new { @class = "input normal form-control", datatype = "*", nullmsg = " ", errormsg = " ", sucmsg = " " } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>司机</dt>
                            <dd>
                                @Html.EditorFor(m => m.V_DRIVER, new { htmlAttributes = new { @class = "input normal form-control", datatype = "*", nullmsg = " ", errormsg = " ", sucmsg = " " } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>车辆类型</dt>
                            <dd>
                                <div class="rule-single-select">@Html.DropDownListFor(m => m.V_TYPE, ViewBag.V_TYPEData as List<SelectListItem>, new { @Class = "form-control" })</div>
                            </dd>
                        </dl>
                        <dl>
                            <dt>购买日期</dt>
                            <dd>
                                @Html.EditorFor(m => m.V_DATE, new { htmlAttributes = new { @Class = "input rule-date-input form-control", onfocus = "WdatePicker({ dateFmt: 'yyyy-MM-dd HH:mm:ss'})" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>购买价格</dt>
                            <dd>
                                @Html.EditorFor(m => m.V_PRICE, new { htmlAttributes = new { @class = "input normal form-control" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>发动机号</dt>
                            <dd>
                                @Html.EditorFor(m => m.V_ENGINE_NUM, new { htmlAttributes = new { @class = "input normal form-control" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>当前状态</dt>
                            <dd>
                                <div class="rule-single-checkbox"> @Html.CheckBoxFor(m => m.V_STATUS, new { @class = "form-control" }) </div>
                            </dd>
                        </dl>
                        <dl>
                            <dt>备注</dt>
                            <dd>
                                @Html.TextAreaFor(m => m.V_REMARK, new { @class = "input normal form-control" })
                            </dd>
                        </dl>
                        <dl>
                            <dt>车辆照片ID</dt>
                            <dd>
                                @Html.TextBoxFor(m => m.ATTACHMENT_ID, new { @class = "input normal upload-path" })<div class="upload-box upload-img"></div>
                            </dd>
                        </dl>
                        <dl>
                            <dt>车辆照片名称</dt>
                            <dd>
                                @Html.EditorFor(m => m.ATTACHMENT_NAME, new { htmlAttributes = new { @class = "input normal form-control" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>是否使用</dt>
                            <dd>
                                <div class="rule-single-checkbox"> @Html.CheckBoxFor(m => m.USEING_FLAG, new { @class = "form-control" }) </div>
                            </dd>
                        </dl>
                        <dl>
                            <dt>申请权限</dt>
                            <dd>
                                <div class="rule-single-select">@Html.DropDownListFor(m => m.CAR_USER, ViewBag.CAR_USERData as List<SelectListItem>, new { @Class = "form-control" })</div>
                            </dd>
                        </dl>
                        <dl>
                            <dt>历史记录</dt>
                            <dd>
                                @Html.TextAreaFor(m => m.HISTORT, new { @class = "input normal form-control" })
                            </dd>
                        </dl>
                        <dl>
                            <dt>附件ID</dt>
                            <dd>
                                @Html.TextBoxFor(m => m.ATTACH_ID, new { @class = "input normal upload-path" })<div class="upload-box upload-img"></div>
                            </dd>
                        </dl>
                        <dl>
                            <dt>附件名称</dt>
                            <dd>
                                @Html.EditorFor(m => m.ATTACH_NAME, new { htmlAttributes = new { @class = "input normal form-control" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>司机手机号</dt>
                            <dd>
                                @Html.EditorFor(m => m.V_PHONE_NO, new { htmlAttributes = new { @class = "input normal form-control", datatype = "m", nullmsg = " ", errormsg = " ", sucmsg = " " } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>申请部门</dt>
                            <dd>
                                @Html.EditorFor(m => m.DEPT_RANGE, new { htmlAttributes = new { @class = "input normal form-control" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>申请人员</dt>
                            <dd>
                                @Html.EditorFor(m => m.USER_RANGE, new { htmlAttributes = new { @class = "input normal form-control" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>车辆信息新建人</dt>
                            <dd>
                                @Html.EditorFor(m => m.V_MANAGE, new { htmlAttributes = new { @class = "input normal form-control" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>年检日期</dt>
                            <dd>
                                @Html.EditorFor(m => m.V_MOT, new { htmlAttributes = new { @Class = "input rule-date-input form-control", onfocus = "WdatePicker({ dateFmt: 'yyyy-MM-dd HH:mm:ss'})" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>保险日期</dt>
                            <dd>
                                @Html.EditorFor(m => m.V_INSURE, new { htmlAttributes = new { @Class = "input rule-date-input form-control", onfocus = "WdatePicker({ dateFmt: 'yyyy-MM-dd HH:mm:ss'})" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>年检到期日期</dt>
                            <dd>
                                @Html.EditorFor(m => m.V_MOT_SMS, new { htmlAttributes = new { @Class = "input rule-date-input form-control", onfocus = "WdatePicker({ dateFmt: 'yyyy-MM-dd HH:mm:ss'})" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>保险到期日期</dt>
                            <dd>
                                @Html.EditorFor(m => m.V_INSURE_SMS, new { htmlAttributes = new { @Class = "input rule-date-input form-control", onfocus = "WdatePicker({ dateFmt: 'yyyy-MM-dd HH:mm:ss'})" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>年检提醒类型</dt>
                            <dd>
                                <div class="rule-single-select">@Html.DropDownListFor(m => m.V_MOT_SMS_TYPE, ViewBag.V_MOT_SMS_TYPEData as List<SelectListItem>, new { @Class = "form-control" })</div>
                            </dd>
                        </dl>
                        <dl>
                            <dt>保险提醒类型</dt>
                            <dd>
                                <div class="rule-single-select">@Html.DropDownListFor(m => m.V_INSURE_SMS_TYPE, ViewBag.V_INSURE_SMS_TYPEData as List<SelectListItem>, new { @Class = "form-control" })</div>
                            </dd>
                        </dl>
                        <dl>
                            <dt>排量</dt>
                            <dd>
                                @Html.EditorFor(m => m.V_DISPLACEMENT, new { htmlAttributes = new { @class = "input normal form-control" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>车身颜色</dt>
                            <dd>
                                @Html.EditorFor(m => m.V_COLOR, new { htmlAttributes = new { @class = "input normal form-control" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>座位数</dt>
                            <dd>
                                @Html.EditorFor(m => m.V_SEATING, new { htmlAttributes = new { Class = "input small form-control" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>车架号后6位</dt>
                            <dd>
                                @Html.EditorFor(m => m.V_FRAME, new { htmlAttributes = new { @class = "input normal form-control" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>机动车登记证书后7位</dt>
                            <dd>
                                @Html.EditorFor(m => m.V_CERTIFICATION, new { htmlAttributes = new { @class = "input normal form-control" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>保管部门</dt>
                            <dd>
                                <div class="rule-single-select">@Html.DropDownListFor(m => m.V_DEPART, ViewBag.V_DEPARTData as List<SelectListItem>, new { @Class = "form-control" })</div>
                            </dd>
                        </dl>
                        <dl>
                            <dt>车辆所有人</dt>
                            <dd>
                                <div class="rule-single-select">@Html.DropDownListFor(m => m.V_ONWER, ViewBag.V_ONWERData as List<SelectListItem>, new { @Class = "form-control" })</div>
                            </dd>
                        </dl>
                        <dl>
                            <dt>车辆使用人</dt>
                            <dd>
                                <div class="rule-single-select">@Html.DropDownListFor(m => m.V_CARUSER, ViewBag.V_CARUSERData as List<SelectListItem>, new { @Class = "form-control" })</div>
                            </dd>
                        </dl>
                        <dl>
                            <dt>购置税价格</dt>
                            <dd>
                                @Html.EditorFor(m => m.V_TAX, new { htmlAttributes = new { @class = "input normal form-control" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>商业险日期</dt>
                            <dd>
                                @Html.EditorFor(m => m.V_BINSURE, new { htmlAttributes = new { @Class = "input rule-date-input form-control", onfocus = "WdatePicker({ dateFmt: 'yyyy-MM-dd HH:mm:ss'})" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>商业险到期提醒时间</dt>
                            <dd>
                                @Html.EditorFor(m => m.V_BINSURE_SMS, new { htmlAttributes = new { @Class = "input rule-date-input form-control", onfocus = "WdatePicker({ dateFmt: 'yyyy-MM-dd HH:mm:ss'})" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>车辆档案情况</dt>
                            <dd>
                                @Html.TextAreaFor(m => m.V_RECORD, new { @class = "input normal form-control" })
                            </dd>
                        </dl>
                        <dl>
                            <dt>档案借还记录</dt>
                            <dd>
                                @Html.TextAreaFor(m => m.V_BACKRECORD, new { @class = "input normal form-control" })
                            </dd>
                        </dl>
                        <dl>
                            <dt>车辆性质</dt>
                            <dd>
                                <div class="rule-single-select">@Html.DropDownListFor(m => m.V_NATURE, ViewBag.V_NATUREData as List<SelectListItem>, new { @Class = "form-control" })</div>
                            </dd>
                        </dl>
                        <dl>
                            <dt>财务借支</dt>
                            <dd>
                                @Html.EditorFor(m => m.V_PAY, new { htmlAttributes = new { @class = "input normal form-control" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>初始里程</dt>
                            <dd>
                                @Html.EditorFor(m => m.V_MILEAGE, new { htmlAttributes = new { @class = "input normal form-control" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>保管部门电话</dt>
                            <dd>
                                @Html.EditorFor(m => m.V_DEPART_PHONE, new { htmlAttributes = new { @class = "input normal form-control", datatype = "m", nullmsg = " ", errormsg = " ", sucmsg = " " } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>车辆所有人电话</dt>
                            <dd>
                                @Html.EditorFor(m => m.V_ONWER_PHONE, new { htmlAttributes = new { @class = "input normal form-control", datatype = "m", nullmsg = " ", errormsg = " ", sucmsg = " " } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>车辆使用人电话</dt>
                            <dd>
                                @Html.EditorFor(m => m.V_CARUSER_PHONE, new { htmlAttributes = new { @class = "input normal form-control", datatype = "m", nullmsg = " ", errormsg = " ", sucmsg = " " } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>商业险类型</dt>
                            <dd>
                                <div class="rule-single-select">@Html.DropDownListFor(m => m.V_BINSURE_SMS_TYPE, ViewBag.V_BINSURE_SMS_TYPEData as List<SelectListItem>, new { @Class = "form-control" })</div>
                            </dd>
                        </dl>
                        <dl>
                            <dt>自定义标题</dt>
                            <dd>
                                @Html.EditorFor(m => m.V_TITLES, new { htmlAttributes = new { @class = "input normal form-control" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>自定义内容</dt>
                            <dd>
                                @Html.EditorFor(m => m.V_FIELDS, new { htmlAttributes = new { @class = "input normal form-control" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>自定义字段数量</dt>
                            <dd>
                                @Html.EditorFor(m => m.V_NUMBERS, new { htmlAttributes = new { Class = "input small form-control" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>油卡编号</dt>
                            <dd>
                                @Html.EditorFor(m => m.V_OIL, new { htmlAttributes = new { @class = "input normal form-control" } })
                            </dd>
                        </dl>

                    </div>
                    <div class="from-footer">
                        <div class="btn-wrap" style="position: fixed;" onclick="savefrom()">
                            <a class="btn btn-sm btn-primary radius">
                                <i class="iconfont icon-save"></i>
                                提交保存
                            </a>
                            <a class="btn btn-sm btn-warning radius" onclick="parent.closeTab('6202')">
                                <i class="iconfont icon-fanhui"></i>
                                取消关闭
                            </a>
                        </div>
                    </div>
                }
            </div>
        </div>
    </div>
</div>
@section scripts{
    <script src="@Url.Content("~/Content/JS/common/WdatePicker/WdatePicker.js")"></script>
    <script type="text/javascript" charset="utf-8" src="@Url.Content("~/Content/JS/common/jquery/Validform_v5.3.2_min.js")"></script>
    <script type="text/javascript" charset="utf-8" src="@Url.Content("~/Content/JS/common/artdialog/dialog-plus-min.js")"></script>
    <script type="text/javascript" charset="utf-8" src="@Url.Content("~/Content/JS/common/webuploader/webuploader.min.js")"></script>
    <script type="text/javascript" charset="utf-8" src="@Url.Content("~/Content/editor/ueditor.config.js")"></script>
    <script type="text/javascript" charset="utf-8" src="@Url.Content("~/Content/editor/ueditor.all.min.js")"></script>
    <script type="text/javascript" charset="utf-8" src="@Url.Content("~/Content/editor/lang/zh-cn/zh-cn.js")"></script>
    @*<script type="text/javascript" charset="utf-8" src="../js/uploader.js"></script>*@

    <script src="@Url.Content("~/Content/JS/common/from.js")"></script>
    <script>
        $(function () {
            //初始化表单验证
            $("#carfrom").initValidform();

        });
        function savefrom() {
            $("#carfrom").submit();
        }

    </script>

}